<div class="panel-heading"><span class="titulo_modulo">Recuperar Contrase&ntilde;a</span></div>
<?php echo $this->Form->create('Usuario', array('id' => 'usuario', 'inputDefaults' => array('div' => false, 'label' => false))); ?>
<table class="form_registros">
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
        <td>Usuario o Correo</td>
        <td><?php echo $this->Form->input('usuario'); ?></td>
    </tr>
    <tr>
        <td>Captcha</td>
        <td>
            <?php echo $this->Html->image('captcha.jpg', array('style' => 'padding: 0.5%;')); ?>
            <?php echo $this->Form->input('captcha', array('id' => 'captcha', 'name' => 'captcha')); ?>
        </td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
        <td colspan="2" class="centro">
            <?php echo $this->Form->button('Aceptar', array('class' => 'btn_accion guardar')); ?>&nbsp;
            <?php echo $this->Html->link('Cancelar', array('controller' => 'Usuarios', 'action' => 'iniciar_sesion'), array('class' => 'btn_accion cancelar')) ?>
        </td>
    </tr>
</table>
<?php
    echo $this->Form->end();

    $this->Validador->setFormulario('usuario');
    $this->Validador->setRules('data.Usuario.usuario', array('required' => array('value' => true)));
    $this->Validador->setRules('captcha', array('required' => array('value' => true), 'remote' => array('url' => "'" . Router::url(array('controller' => 'Validacions', 'action' => "validarCaptcha")) . "'", 'async' => true, 'message' => 'Captcha Inválido')));
    $this->Validador->printScript(true);
?>
<script type="text/javascript">
    $(function(){
        $("form#usuario").tooltip({
            show: false,
            hide: false
        });
    });
</script>